package com.xiong.miaosha.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author wardseptember
 * @create 2020-03-16 11:03
 */
public class ValidatorUtil {

    private static final Pattern mobile_pattern = Pattern.compile("1\\d{10}");

    public static boolean isMobile(String src) {
        if (src == null || src.isEmpty()) {
            return false;
        }
        Matcher m = mobile_pattern.matcher(src);
        return m.matches();
    }
}
